import { ref } from 'vue';

interface Feedback {
  money?: number;
  show: boolean;
  callback: any;
  tips: string;
}
export const feedbackConfig = ref<Feedback>({
  show: false,
  callback: undefined,
  tips: '',
  money: 0,
});
export const feedback = (config: Feedback) => {
  feedbackConfig.value.show = config.show;
  feedbackConfig.value.callback = config.callback;
  feedbackConfig.value.money = config.money;
  feedbackConfig.value.tips = config.tips || '成功';
};
